<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class FOwner extends CI_Controller {
	function __construct()
	{
		parent::__construct();
		$this->load->model('owner_model');
		$this->load->model('car_model');
	}

	function index()
	{	
		$data['query'] = $this->owner_model->getAllPublish("maintenance");
		$page["_contents"] = "frontend/owner/v_owner_maintenance";

		$this->template->load("frontend/template/owner_template",$page,$data);
	}

	function safety()
	{
		$data['query'] = $this->owner_model->getAllPublish("safety");
		$page["_contents"] = "frontend/owner/v_owner_safety";

		$this->template->load("frontend/template/owner_template",$page,$data);
	}

	function warranties()
	{
		$data['query'] = $this->owner_model->getAllPublish("manual");
		$page["_contents"] = "frontend/owner/v_owner_warranties";

		$this->template->load("frontend/template/owner_template",$page,$data);
	}

	function manual()
	{
		$data['query'] = $this->owner_model->getAllPublish("manual");
		$page["_contents"] = "frontend/owner/v_owner_manual";

		$this->template->load("frontend/template/owner_template",$page,$data);
	}

	function custom()
	{
		$data['query'] = $this->owner_model->getAllPublish("custom");
		$page["_contents"] = "frontend/owner/v_custom";

		$this->template->load("frontend/template/owner_template",$page,$data);
	}

}

/* End of file fOwner.php */
/* Location: ./application/controllers/fOwner.php */